Self-test method, corresponding circuit and device

ABSTRACT

A touchscreen resistive sensor includes a network of resistive sensor branches coupled to a number of sensor nodes arranged at touch locations of the touchscreen. A test sequence is performed by sequentially applying to each sensor node a reference voltage level, jointly coupling to a common line the other nodes, sensing a voltage value at the common line, and declaring a short circuit condition as a result of the voltage value sensed at the common line reaching a short circuit threshold. A current value level flowing at the sensor node to which the reference voltage level is applied is sensed and a malfunction of the resistive sensor branch coupled with the sensor node to which a reference voltage level is applied is generated as a result of the current value sensed at the sensor node reaching an upper threshold or lower threshold.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 16/523,302, filed on Jul. 26, 2019, which claims priority to Italian Patent Application No. 102018000008022, filed on Aug. 9, 2018, which applications are hereby incorporated herein by reference.

TECHNICAL FIELD

Embodiments relate to a self-test method and a corresponding circuit and device, which can be used for example with a touch screen device.

BACKGROUND

The increasing popularity of smart phones and interactive netbooks has led to touch interface being increasingly incorporated in such devices.

Force touch sensors may be used to distinguish between different levels of force being applied to the surface of a touchscreen. Resistive force touch sensors may employ arrays of resistive Wheatstone bridge sensors. The applied force may cause a deformation of the touch panel which then causes a variation of the resistances in the Wheatstone bridge.

Methods for verification of connection integrity of touch-panel sensors traditionally comprise testing the sensors before assembly, for instance carrying out an “open test” and a “short test” during design testing on an engineer work station (hereinafter referred to as an “EWS” testing). However, this has the disadvantage of increasing product cost and test time. Moreover, if a connection failure occurs after EWS testing (during the assembly or during the sensor lifetime, for instance), the sensor functionality could be compromised. Moreover, being able to verify the values of sensor resistances may represent a desirable feature.

Thus, notwithstanding the intensive activity in the field, improved solutions are desirable.

SUMMARY

The description relates to touchscreen panels. One or more embodiments may be applied to Wheatstone bridge sensor arrays in touchscreens. One or more embodiments may be applied to touch panels for smart phones, smart-watches, interactive netbooks, etc.

One or more embodiments can contribute in providing an improved solution as compared to the prior art.

One or more embodiments may relate to a corresponding circuit.

Such a circuit may be associated with, for instance, a touchscreen equipped with a Wheatstone bridge sensor array.

One or more embodiments may relate to a corresponding device.

A mobile communication device may be exemplary of such a device.

One or more embodiments may allow to verify sensor connections by means of a built-in testing circuit.

The claims are an integral part of the technical teaching provided herein with reference to the embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

One or more embodiments will now be described, by way of non-limiting example only, with reference to the annexed Figures, wherein:

FIG. 1 is an exploded view of a touchscreen device;

FIG. 2 is an exemplary view of forces applied to a touchscreen;

FIG. 3 is exemplary of a stack of layers of a resistive touchscreen;

FIG. 4 is a circuit diagram exemplary of a resistive sensor;

FIG. 5 is a circuit diagram exemplary of embodiments;

FIG. 6 comprises time diagrams of signals which may occur in embodiments;

FIG. 7 , which includes FIGS. 7A-7D, comprises circuit diagrams exemplary of embodiments;

FIG. 8 is a circuit diagram exemplary of a portion of FIG. 5 .

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

In the ensuing description, one or more specific details are illustrated, aimed at providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.

Reference to “an embodiment” or “one embodiment” in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is comprised in at least one embodiment. Hence, phrases such as “in an embodiment” or “in one embodiment” that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment.

Moreover, particular conformations, structures, or characteristics may be combined in any adequate way in one or more embodiments.

The references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.

A mobile communication device 10, as exemplified in FIG. 1 , may incorporate an electronic device 8 comprising a touch interface 7, e.g., a display, to facilitate operation by a user.

A mobile communication device 10 may comprise, for instance, a smart phone, a smart watch, an electronic tablet, a GPS navigation device, and any other mobile communication device which may be configured to be controlled by a user via a touch screen interface 7.

As exemplified in FIGS. 1 and 2 , the touch interface 7 may comprise an array of sensors 6 for sensing a force applied, e.g., by a finger F, onto a touch surface 4.

For instance, the array of sensors 6 may comprise a plurality of resistive touch sensors.

In one or more embodiments, the touch surface 4 may comprise polycarbonate or Gorilla Glass materials.

In one or more embodiments, the touch panel 7, e.g., comprising a resistive touchscreen sensor array 6 as exemplified in FIG. 3 , may comprise at least a pair of conductive layers. For instance, the touchscreen sensor array 6 may comprise multiple layers stacked one onto another, from top to bottom:

a flexible top layer 110, comprising a flexible film material,

a layer 120, for instance comprising a layer of ITO (Indium-Tin-Oxide) material,

a gap 140, comprising e.g., flexible dots, air,

a layer 160, another layer of ITO,

a base 180, e.g., a glass layer.

In one or more embodiments, the touchscreen sensor array 6 may comprise multiple wires attached to the layers 120, 160: a first set (not visible) on, e.g., the left and right sides of layer 120 and a second set (not visible) on, e.g., the top and bottom sides of layer 160.

The touch screen 6 may register the touch of a finger F as it applies a pressure onto the flexible top layer 110, compressing the flexible top layer 110 up to a maximum compression in which, e.g., its surface contacts the top surface of the underlying layer. In fact, a finger touch F may be detected when the user pushes on the touchscreen making the layers contact one another.

In one or more embodiments, a circuit 10 may comprise a sensor 40, for instance as exemplified in FIG. 4 .

In one or more embodiments, for instance, force touch sensor 40 may be used to distinguish between different levels of force being applied to a surface of the touchscreen 4, 6, 7 by the finger F or a force or pressure.

As exemplified in FIG. 4 , the touch sensor 40 may comprise a network of resistive sensor branches, e.g., comprising a set of resistive sensor branches 401 a, 402 a, 40 ia, 40 na.

For the sake of simplicity and ease of description four sensor branches are exemplified herein, being otherwise understood that one or more embodiments may comprise virtually any number of sensor branches.

In fact, the actual number of sensor branches in the sensor 40 may be a number indicative of, e.g., coordinate points on an axis of a Cartesian plane used to represent a position at which pressure F is applied to the touchscreen.

Each sensor branch 40 na in the set of sensor branches 401 a, 402 a, 40 ia, 40 na may comprise a respective connection node 40 n, e.g., a set of sensor connection nodes 401, 402, 40 i, 40 n which may be selectively coupled to circuits in the electronic device 8.

For the sake of simplicity, the principles underlying operation of the embodiments will be discussed in the following mainly with respect to one sensor branch 40 na.

It will be appreciated that this is a non-limiting example. In fact, the same principles may be applied, mutatis mutandis, to (virtually any number of) remaining branches in the set of resistive sensor branches 401 a, 402 a, 40 ia, 40 na in the sensor 40.

Each resistive sensor branch 40 na may comprise a respective pair of resistances R_(S1_N), R_(S2_N), arranged in series, e.g., where a same current may flow from the n-th connection node 40 n to a ground node.

In one or more embodiments, the sensor 40 may be configured to operate in different modes, for instance:

in a first mode, e.g., when the bottom surface of the flexible top layer 110 contacts the top surface of the underlying layer, a sensor circuit node 40 n is connected, e.g., to the electronic device 8, and there is a flow of current in the respective sensor branch 40 na; in a second mode, e.g., when the contact is released, the circuit 40 is opened and no current flows in the respective sensor branch 40 na.

Thus, in one or more embodiments, when any probe F (e.g., a finger, stylus pen, pen, etc.) is used to apply pressure on the top film 110, at least one sensor branch 40 na in the sensor 40 is activated.

For instance, in the first mode, activation of the set of sensor branches 401 a, 402 a, 40 ia, 40 na results in a voltage drop across at least one sensor branch 40 na, e.g., in its respective resistors R_(s1_N), R_(s2_N).

In one or more embodiments, the point of contact of the flexible layer 110 may create a voltage divider network, providing a voltage which may be detected by a controller and processed to obtain information as to the touch position where the pressure F is applied based on the coordinates of the touch position or point.

As mentioned in the foregoing, a touch sensor 40 may comprise a set of resistors, e.g., a set of Wheatstone bridges, thus including a set of connections N, e.g., from connection nodes 401, 402, 40 i, 40 n of the sensor 40 to the electronic device 8, for instance an integer number N of connecting wires from an n-th connection node 40 n to a control unit in the electronic device 8.

In one or more embodiments, each connection N of the n-th connection node 40 n of each sensor branch 40 na in the sensor 40 with user circuits 8 is required to function properly in order to guarantee the reliability of sensor components 40.

In one or more embodiments, a method to ensure proper working functionality may be used to verify that all N connections work properly between respective sensor branches connection nodes 401, 402, 40 i, 40 n and user circuits, e.g., to electronic device 8 circuits in a mobile communication device 10.

In one or more embodiments, for instance:

a missing sensor connection N may be detected from the increased resistance exhibited by a sensor branch (“open test”);

verification of proper working may comprise checking whether the connections N include mutual short circuits (“short test”);

resistance values of sensor branches, e.g., R_(S1_N), R_(S2_N) may be measured to verify they have values within a certain defined range, otherwise being labeled as malfunctioning.

One or more embodiments, as exemplified in FIG. 5 , may allow to verify the sensor connections N. For instance, acts of verification may be performed before assembly and/or also during lifetime of the sensor.

In one or more embodiments, one or more sensor branches affected by “bad connection” (or malfunctioning by exhibiting a sensor resistance out of a certain defined range, e.g., resistance R_(S1_1)>R_(S_max)), such as, for instance, a first sensor branch 401 a, may be isolated and/or permanently electrically decoupled from the electronic device 8, for instance as a function of output signals triggering a finite state machine as discussed in the following. This facilitates adequate operation of the sensor 40 as provided by the remaining sensor branches which may be assumed to be connected properly.

A circuit 100 as exemplified in FIG. 5 and configured to perform a self-test in a sensor 40 may comprise a self-test node 12, a source circuit 20, for instance comprising a low-dropout regulator (LDO) circuit known per se, a sensor network 40, e.g., resistive touch sensors, comprising a plurality of sensor nodes 401, . . . , 40 n, e.g., in connection wired, a control circuit 30, configured to be coupled to the source circuit 20 and to the sensor 40, for instance via connections N, and a finite state machine (FSM) circuit 50 configured to perform a test sequence, which may facilitate to verify the integrity of connections N of the sensor 40.

In one or more embodiments, the sensor network 40 may comprise a number N of respective sensor nodes 401, 402, 40 i, 40 n arranged at touch locations of the touchscreen 4, 6, 7.

In one or more embodiments, both the source circuit 20 and/or the control circuit 30 may be configured to receive a power supply voltage V_(DD) from a, e.g., common, node (indicated with the same name of the supply voltage for simplicity).

In one or more embodiments as exemplified in FIG. 5 , the self-test node 12 may be coupled to the source circuit 20 and to the FSM circuit 50. For instance, the self-test node 12 may receive an enable signal EN_(TEST) and provide the enable signal EN_(TEST) to the source circuit 20 and to the FSM machine circuit 50.

In one or more embodiments, the enable signal may have two states, for instance an active state “1” and an inactive state “0”.

In one or more embodiments, the source circuit 20 may receive as input the enable test signal EN_(TEST) and provide as output a reference signal V_(LDO), e.g., a regulated voltage V_(LDO).

In one or more embodiments, the source circuit 20 may be configured to generate a regulated voltage V_(LDO) to provide to the various circuits within the system 10.

In one or more embodiments the source circuit 20 may comprise a first transistor T₂₀₁, receiving as input the enable test signal EN_(TEST), a second transistor T₂₁₀, coupled to the first transistor T₂₀₁, the transistor T₂₁₀ producing a first control signal V_(LDO), e.g., the reference signal V_(LDO), and an error amplifier 210 having a first input coupled to a first reference voltage V_(REF), a second input receiving a feedback signal from a voltage divider R_(B1), R_(B2), and an output coupled to the transistor T₂₁₀.

In one or more embodiments, the reference signal V_(LDO) may be expressed as: V _(LDO)=(1+R _(B1) /R _(B2))*V _(REF)

In one or more embodiments as exemplified in FIG. 5 , the source circuit 20 may be coupled to the control circuit 30, providing the reference signal V_(LDO) to the control circuit 30.

In one or more embodiments, the control circuit 30 may be coupled to the source circuit 20 and to the sensor circuit 40 at input nodes, for instance:

a first input node I_(LDO),

a second input node V_(LDO),

a set of selective test nodes S_(M), S_(A1), S_(B1), S_(A2), S_(B2), S_(A1), S_(B1), S_(AN), S_(BN), e.g., a set of switches 300.

In one or more embodiments, the set of switches 300 may be configured to perform a test sequence by sequentially coupling the source 20 of reference voltage level V_(LDO) to the sensor nodes 401, 402, 40 i, 40 n, as discussed in the following.

In one or more embodiments, control circuit 30 receives the reference voltage level V_(LDO) and a current I_(LDO) from the input nodes (indicated with the same label of the signals) coupled to the source circuit 20, and a set of test control signals V_(TEST) from the FSM machine circuit 50 controlling the set of switches 300. In one or more embodiments, the FSM machine may be configured to provide control signals V_(TEST) dedicated to performing a test sequence on the sensor 40.

In the following, for the sake of simplicity, one may refer to output signals OUT_(T), OUT_(T2), OUT_(T3) and output nodes OUT_(T1), OUT_(T2), OUT_(T3) in the control circuit 30 in the circuit 100 by using the same labels.

In one or more embodiments, the control circuit 30 may receive a current signal I_(LDO) from the source circuit 20 and mirror it via a current mirror comprising transistors T₁, T₂, e.g., BJT or MOSFET transistors. For example, a first transistor T₁ and a second transistor T₂ may form the current mirror, sensing a current value level flowing at any sensor node in the number N of sensor nodes 401, 402, 40 i, 40 n to which the reference voltage level V_(LDO) is applied.

In one or more embodiments, the first transistor T₁ is coupled to the transistor T₂₀₁ in the source circuit 20 and the second transistor T₂, while the second transistor T₂ is coupled to the first transistor T₁ and to a first set of resistors R_(T1), R_(T2), and to a first 301 and second 302 comparator circuits.

It is noted that transistors T₁, T₂, T₂₀₁ and T₂₁₀ may be coupled to bias sources, e.g., to bias voltage V_(DD), which may be common among transistors.

In one or more embodiments, the control circuit 30 may also comprise various sets of resistors, comprising:

a first set of resistors R_(T1), R_(T2), comprising a first resistor R_(T) and a second resistor R_(T2),

a second set of resistors R_(β1), R_(β2), comprising a first parametric resistor R_(β1) and a second parametric resistor R_(β2) e.g., having values R_(β1)=R_(B)*β, R_(β2)=R_(B)*(1−β), where a parameter β has a selectable value;

a third set of resistors R_(α1), R_(α2), comprising a third variable resistor R_(α1) and a fourth variable resistor R_(α2) e.g., having values R_(β1)=R_(B)*(1−α) and R_(α2)=R_(B)*α, where a parameter α has a selectable value.

In one or more embodiments, each set of resistors R_(T1), R_(T2); R_(β1), R_(β2); R_(α1), R_(α2) may implement a voltage divider.

In one or more embodiments, the value R_(B) may be a bias resistor value.

In one or more embodiments, the control circuit 30 may also comprise a set of comparator circuits 301-302-303. For instance, the set of comparator circuits 301-302-303 may comprise:

the first comparator circuit 301, e.g., a differential amplifier circuit 301 having a first inverting node 301 a, a first non-inverting node 301 b, and a first output node OUT_(T1), the second comparator circuit 302, e.g., a differential amplifier circuit 302 having a second inverting node 302 a, a second non-inverting node 302 b and a second output node OUT_(T2), a third comparator circuit 303, e.g., a differential amplifier circuit 303 having a third inverting node 303 a, a third non-inverting node 303 b and a third output node OUT_(T3).

In one or more embodiments, the second set of resistors R_(β1), R_(β2) are coupled to the second input node V_(LDO), to the set of comparator circuits 301-302-303 and to the third set of resistors R_(α1), R_(α2).

For instance, the node 301 a of the first comparator circuit 301 may sense a voltage drop V_(I+) across the first set of resistors R_(T1) and R_(T2).

For example, the node 302 b of the second comparator circuit 302 may be sensitive to a voltage drop V_(I−) across the second resistor R_(T2) in the first set of resistors R_(T1), R_(T2).

In one or more embodiments, the node 301 b may be coupled to the node 302 a and both nodes 301 b, 302 a may be jointly sensitive to a voltage drop VP across the second parametric resistor R_(β2) in the second set of resistors R_(β1), R_(β2).

In one or more embodiments the control circuit 30 may comprise:

a “top” branch or line 30A, coupling the second input node V_(LDO) to the node 303 a and comprising the third set of resistors R_(α1), R_(α2);

a “bottom” branch or line 30B, selectively coupling the node 303 b to a ground node GND.

The input node 303 a, as exemplified in FIG. 5 , may thus be sensitive to a voltage drop V_(M−) across the fourth variable resistor R_(α2), e.g., V_(M−) proportional to the source voltage V_(LDO).

In one or more embodiments, as mentioned in the foregoing, the control circuit 30 may also receive a set of test control signals V_(TEST) from the FSM circuit 50.

In one or more embodiments, the set of test control signals V_(TEST) may comprise a number of signals 2*N+1, where N is the number of sensor nodes 401, 402, 40 i, 40 n in the sensor 40.

For instance, in the case of the sensor having N=2 sensor branches 401 a, 402 a, the set of test control signals V_(TEST) may be represented as an array having five components: V _(TEST)=[V _(RES) ,V _(A_1) ,V _(B_1) ,V _(A_2) ,V _(B_2)] where:

V_(RES) is a reset signal,

V_(A_1), V_(B_1) is a first pair of test signals, V_(A_2), V_(B_2) is a second pair of test signals.

The set of control signals V_(TEST) may operate a set of switches 300 to perform a test sequence, by selectively coupling sensor branches in the sensor 40 to, alternatively, one of:

the line 30A, e.g., having a constant electric voltage potential value V_(LDO) provided by the source between the input node V_(LDO) and ground,

the line 30B, e.g., having an electric voltage potential value V_(M+).

Specifically, a reset switch S_(M) controlled by a reset signal V_(RES) may be dedicated to couple the third non-inverting node 303 b to a base voltage GND, e.g., to ground.

For instance, the reset signal V_(RES) may periodically reset the voltage level on the line 30B between subsequent repetitions of the test sequence.

Each signal in the set of test control signals V_(TEST) may thus operate a respective set of switches 300 in the control circuit 30 to selectively couple, sequentially, each sensor branch 40 na in the set of sensor branches 401 a, 402 a, 40 ia, 40 na to the control circuit 30, thus applying the reference voltage level V_(LDO) sequentially to each connection node in the integer N of connection nodes 401, 402, 40 i, 40 n in the sensor 40.

For instance, in the exemplary case of the sensor 40 comprising two sensor nodes 401, 402 and two sensor branches 401 a, 402 a, the set of switches 300 may comprise:

a first pair of switches S_(A1), S_(B1), comprising a first left switch S_(A1), respectively a first “right-hand” switch S_(B), configured to selectively couple a first sensor branch 401 a to the line 30A, respectively to the line 30B, as a function of the first pair of test signals V_(A_1), V_(B_1),

a second pair of switches S_(A_2), S_(B_2), comprising a second “left-hand” switch S_(A_2), respectively a second right switch S_(B_2), configured to selectively couple a second sensor branch 402 a to the line 30A, resp. the line 30B, in the control circuit 30, as a function of a second pair of test signals V_(A_2), V_(B_2).

It is noted that the control circuit 30 may comprise a number 2*N+1 of switches, for instance an n-th pair of switches S_(AN), S_(BN) where N is the number of sensor branches 401 a, . . . , 40 na in the sensor 40 plus at least one reset switch S_(M).

The control circuit 30 may provide as output, e.g., to a user circuit, a set of output signals OUT_(T1), OUT_(T2), OUT_(T3).

For example, the signals in the set of output signals OUT_(T1), OUT_(T2), OUT_(T3) may have discrete values, e.g., one of two values, indicative of the presence of mutual short circuits (e.g., short circuit signal OUT_(T3)) and/or out-of-range resistance values (e.g., malfunctioning signals OUT_(T1), OUT_(T2)) in a sensor branch or branches of the sensor 40.

Specifically, a first short circuit signal OUT_(T3) may be indicative of the presence of mutual short circuits, while the remaining malfunctioning signals OUT_(T1), OUT_(T2) may be indicative of resistance values outside the interval set by upper and lower thresholds.

In one or more embodiments, the short and malfunctioning signals OUT_(T1), OUT_(T2), OUT_(T3) of the control circuit 30 may be configured to:

have a first state, e.g., OUT_(T3)=“1” in at least one period, in case of mutual short circuits, have a second state, e.g., OUT_(T1)=“1” or OUT_(T2)=“1” in at least one period in case of sensor resistance out of a defined range (e.g., the range defined by R_(T1) and R_(T2) resistors).

In one or more embodiments, the set of output signals OUT_(T1), OUT_(T2), OUT_(T3) may be provided as input to the FSM circuit 50, together with the enable signal EN_(TEST) from the self-test node 12.

It is noted that output signals OUT_(T1), OUT_(T2), OUT_(T3) are provided, in one or more embodiments, by respective comparator stages 301, 302, 303 which are implemented as operational amplifiers 301, 302, 303. As such, in one or more embodiments, the output of the operational amplifiers 301, 302, 303 may be biased with a bias voltage V_(DD), for instance with a first differential amplifier node V+ at the bias voltage V_(DD) and a second differential amplifier node V− to ground GND.

In fact, if the voltage at the first node V+(signal and node at which the signal is present are indicated in a same way) is configured to be slightly higher than the voltage at the second node V−, the operational amplifier, thanks to its very high gain, will output a value equal to V_(DD) which can be associated to the logical level “i”, particularly in the case of FSM stage 50 comprising logic ports which are powered between a voltage equal to the bias voltage V_(DD) and ground GND. Analogously, if the voltage at the first node V+ (signal and terminal at which the signal is present are indicated in a same way) is configured to be slightly lower than the voltage at the second node V−, the operational amplifier, thanks to its very high gain, will output a value equal to ground (0 Volt) which can be associated to the logical level “0”, particularly in the case of FSM stage 50 comprising logic ports which are powered between a voltage equal to the bias voltage V_(DD) and ground GND.

As mentioned, the finite state machine (FSM) circuit 50 may thus process the inputs and provide at output the set of test control signals V_(TEST) to operate the set of switches 300 in the control circuit 30, as discussed in the following.

In one or more embodiments, the finite state machine 50 may be coupled to the comparator circuits 301-302-303 and sensitive to the short circuit and malfunctioning signals OUT_(T3), OUT_(T1), OUT_(T2). For instance, the finite state machine 50 may be configured to identify, as a function of the short circuit and malfunctioning signals OUT_(T3), OUT_(T1), OUT_(T2), a location of a fault in the network of resistive sensor branches 401 a, 402 a, 40 ia, 40 na, e.g., which one sensor branch in the network of sensor branches 401 a, 402 a, 40 ia, 40 na is affected by a short circuit or malfunctioning condition.

In one or more embodiments, signals in the system 10 may be clocked with a clock signal, e.g., provided to the FSM circuit 50.

A possible time diagram of signals, e.g., received/provided by the FSM circuit 50, in a system 10 according to embodiments is exemplified in FIG. 6 .

Portion 50 a) of FIG. 6 is a possible time diagram of FSM signals, e.g., the test-enable signal EN_(TEST) provided by the self-test node 12, activating the finite state machine circuit 50, e.g., configured to perform a self-test procedure on the sensor 40.

Portions 50 b) to 50 e) of FIG. 6 are indicative of possible time diagrams of signals generated in the FSM circuit 50 and provided to the control circuit 30.

For the sake of completeness, portions labeled 50 f) to 50 l) are also included in FIG. 6 with exemplary possible time diagrams of signals generated in the FSM circuit 50 and provided to the control circuit 30 in order to highlight the possibility for embodiments to include virtually any number of sensor branches. The following detailed description will be limited for simplicity to diagrams 50 a) to 50 f).

In particular, the reset signal V_(RES) may be an internal clock signal, e.g., having period T=t₂−t₁ as discussed in the following.

As shown in FIG. 6 , at a first time to, the self-test system 10 is “activated” as the test enable signal EN_(TEST) switches to a first value, e.g., EN_(TEST)=“1”.

While EN_(TEST) is at the first value, the finite state machine 50 may generate, sequentially, a number N of signals where N is the number of sensor branches to test. In fact, the finite state machine has N states and it employs N periods to detect mutual short circuits, e.g., between sensor branches in the sensor 40. For instance, the FSM circuit 50 performs the test sequence which lasts as number of periods/cycles equal to the number of sensor branches to test.

As noted, for the sake of simplicity, the following discussion of working principles of embodiments is provided mainly with respect to a sensor 40 comprising a quantity N=2 of sensor branches, e.g., a first sensor branch 401 a and a second sensor branch 402 a.

In a simple case, as discussed in the foregoing, of N=2 sensor branches 401 a, 402 a, at a rising edge of the reset signal V_(RES), i.e., when V_(RES)=“1” at t₀, the FSM circuit goes in a first state S₁, wherein:

a first test signal V_(A_1) in the first pair of test signals V_(A_1), V_(B_1) has a first value, e.g., V_(A_1)=“1”;

a second test signal V_(B_1) in the first pair of test signals V_(A_1), V_(B_1) has a value opposite to that of the first test signal, e.g., V_(B_1)=not(V_(A_1))=“0”;

a first test signal V_(A_2) in the second pair of test signals V_(A_2), V_(B_2) has a value opposite to that of the first test signal in the first pair of test signals V_(A_1), V_(B_1), e.g., V_(A_2)=not(V_(A_1))=“0”, and

a second test signal V_(B_2) in the second pair of test signals V_(A_2), V_(B_2) has a value, e.g., V_(B_2)=1.

In a first cycle of period T, the reset signal V_(RES) goes to a value V_(RES)=“0” at time t=T/2 and then, at time t=t end of the period, it goes back to the first value V_(RES)=“1”.

In this specific example of two sensor branches 401 a, 402 a, during the first state S₁, a set of test control signals in a first state V_(TEST)(S₁) may be expressed as: V _(TEST)(S ₁)=[V _(RES) ,V _(A_1)=1,V _(B_1)=0,V _(A_n)=0,V _(B_n)=1]

When the control circuit 30 receives the test control signal in the first state V_(TEST)(S₁), the switches in the set of switches 300 are operated as follows:

switch “on” the reset switch S_(M), e.g., coupling the non-inverting input 303 b to ground GND, switch “on” only one “left-hand” switch, e.g., the first left switch S_(A1) and switch “off” all remaining left switches S_(A2), e.g., coupling the first sensor branch to the line 30A,

switch “on” all “right-hand” switches but one, e.g., but the first right switch S_(B1), e.g., coupling all sensor branches except one to the common line 30B, e.g., save the first sensor branch 401 a.

Thus, in the example considered here, in the first period T of the reset signal V_(RES):

the first sensor branch 401 is coupled to the line 30A,

all the remaining N−1 sensor branches (in the example considered here, these are represented by simplicity by the second sensor branch 402 a) are coupled to the line 30B.

At time t=t₁ the reset signal V_(RES) has completed a cycle and thus it triggers the finite state machine to go to a second state S₂.

In general, at the i-th clock period of the reset signal V_(RES), the finite state machine circuit 50 is in a i-th state in which it generates a set of signals V_(TEST)(S_(i)) in the i-th state S_(i), which may be expressed as: V _(TEST)(S ₁)=[V _(RES) ,V _(A_1)=0,V _(B_1)=1, . . . ,V _(A_i)=1,V _(B_i)=0,V _(A_n)=0,V _(B_n)=1]

In one or more embodiments, thus, the finite state machine (FSM) circuit 50 is configured to generate the set of control signals V_(TEST) to operate the set of switches 300 in the control circuit 30 so that:

in the first period of V_(RES), e.g., t₁−t₀, the first sensor branch 401 a in the sensor 40 is coupled to the line 30A whereas all the remaining branches are coupled to the line 30B, in the second period of V_(RES), e.g., t₂−t₁, a second branch 402 a in the sensor 40 is coupled to the line 30A whereas all the remaining branches are coupled to the line 30B.

Such a sequence may progress until in the i-th period t_(i)−t_(i−1), the i-th sensor branch 40 ia in the sensor 40 is connected to the line 30A whereas all the remaining branches are coupled to the line 30B.

In one or more embodiments, the comparator circuits 301-302-303 may be configured so that their output signals OUT_(T1), OUT_(T2), OUT_(T3) are sampled at times t₁, t₂, t₃, . . . , t_(n), e.g., on rising edges of the clock signal V_(RES). This may facilitate providing output signals OUT_(T1), OUT_(T2), OUT_(T3) having a stable output voltage level.

In one or more embodiments, the output signal OUT_(T3) may switch to a level equal to “1” in at least a period T of the clock signal V_(RES), as a result of the voltage V_(M+) on the line 30B reaching a (short circuit) threshold of the comparator 303.

This may be indicative of the line 30B having been “pulled up” as a result of the occurrence of any one of the (mutual) short circuit conditions exemplified in FIG. 7 , which includes FIGS. 7A-7D.

In a first example of FIG. 7A, a possible mutual short circuit may be present between the first connection node 401 of the first sensor branch 401 a and a second connection node 402 in a second sensor branch 402 a.

In the first state S₁ of the FSM circuit 50 (e.g., during the time interval between t0 and t1) only the first sensor branch 401 a is coupled to the source voltage V_(LDO) while the others aren't. Nevertheless, due to the presence of the mutual short circuit, also the remaining sensor branches have a voltage drop across which is not zero and which is sensed by the third comparator stage 303. Thus, during the first interval t₁−t₀, in case of a short circuit as exemplified in of FIG. 7A, the voltage level V_(M+) on the line 30B may be equal to the source voltage level V_(M+)=V_(LDO).

In portion FIG. 7B, another possible arrangement of a mutual short circuit between the first sensor branch 401 a and the second sensor branch 402 a is shown. In this second arrangement, the mutual short circuit is between the connection node 402 of the second sensor branch 402 a and a node 401 b between the series resistors R_(S1_1), R_(S2_1) in the first sensor branch 401 a.

Again, in the first state S₁ of the FSM circuit 50, the voltage V_(M+) is non-zero and may be expressed as:

$V_{M_{+}} = {V_{L_{D_{O}}} \cdot \left( \frac{2}{N + 3} \right)}$

In a third example as shown in FIG. 7C, the mutual short circuit may be present between the connection node 401 of the first sensor branch 401 a and a node 402 b of the second sensor branch 402 a.

In an exemplary case according to FIG. 7C, the voltage V_(M+) on the line 30B may be expressed as:

$V_{M_{+}} = {V_{L_{D_{O}}} \cdot \frac{2}{N}}$

In a fourth example as in FIG. 7D, the mutual short circuit may be between the node 401 b and the node 402 b between respective series resistances R_(S1_1), R_(S2_1) and R_(S1_2), R_(S2_2) in the respective first and second sensor branches 401 a, 402 a.

In a scenario according to FIG. 7D, the voltage V_(M+) on the line 30B may be expressed as:

$V_{M_{+}} = {V_{L_{D_{O}}} \cdot \left( \frac{2}{{4 \cdot N} - 2} \right)}$

To correctly detect all possible mutual short circuits the parameter α is thus selected to have a value expressed as:

$\alpha < {\min\left( {1,\frac{2}{N + 3},\frac{2}{N},\frac{2}{{4 \cdot N} - 2}} \right)}$

For instance, in the example with N=2 sensor branches, the parameter α may have a value α=min(i, 2/5, 2/2, 2/(8−2))=1/3=0.33.

As a consequence of this choice, the third comparator 303 may receive as input the voltage V_(M+) on the line 30B and a voltage drop V_(M−) across the fourth variable resistor R_(α2), where V_(M−) is proportional to the source voltage V_(LDO), e.g., a scaled replica having a value expressed as: V _(M−) =R _(α2)/(R _(α1) +R _(α2))*V _(LDO) =α*V _(LDO).

In this way OUT_(T3) may be equal to “1” if any possible short circuit connection arrangement occurs, as exemplified in FIG. 7 .

FIG. 8 presents an example to illustrate how the circuit may detect the presence of a resistor in any sensor branch in the set of sensor branches 401 a, 402 a, 40 ia, 40 na whose value is outside a desired range.

As shown in FIG. 8 , in fact, when the FSM circuit 50 is in the first state S₁ (e.g., during the time interval between t0 and t1 of FIG. 6 ), the tension across the first set of resistors R_(T1) and R_(T2) has a value V_(I+) and V_(I−) to be applied to the input nodes of comparators 301, 302.

In one or more embodiments, while the sensor branch 401 a is coupled to the line 30A, it has a current flowing I=V_(LDO)/(R_(S1_N)+R_(S2_N)). Consequently, via current mirroring T₁, T₂ the same current flowing in the sensor branch 401 a goes into the first set of resistors R_(T1), R_(T2), in such a way that the signals applied to the inputs 301 a, 302 b of the comparator circuits 301, 302 have values V_(I+), V_(I−) which may be expressed as: V _(I+)=(R _(T1) +R _(T2))*V _(LDO)/(R _(S1_1) +R _(S2_1)) V _(I−)=(R _(T2))*V _(LDO)/(R _(S1_1) +R _(S2_1))

At the same time, the remaining input nodes 301 b, 302 a of the comparator stages 301, 302 are coupled to a same node receiving a threshold voltage V_(β). For instance, the threshold voltage V_(β) may be the voltage drop across the second set of parametric resistors R_(β1), R_(β2). Thus, the threshold voltage V_(β) may be a function of the parameter β and may be expressed as: V_(β)=(R_(β2)/R_(β1)+R_(β2)))*V_(LDO)=β*V_(LDO).

In one or more embodiments, the first and second output signals OUT_(T1), OUT_(T2) may be a function of the differences of the signals V_(I+), V_(β) and V_(I−), V_(β), for instance: OUT_(T1) ∝V _(β) −V _(I+) OUT_(T2) ∝V _(I−) −V _(β)

In one or more embodiments, the output OUT_(T1) and OUT_(T2) may switch to a value, e.g., “1”, when the resistance and parametric resistances values satisfy the following conditions:

${\beta \cdot V_{L_{D_{O}}}} > {\left( {R_{T_{1}} + R_{T_{2}}} \right) \cdot \frac{v_{L_{D_{O}}}}{{R_{S}}_{1} + R_{S_{2}}}}$ ${\beta \cdot V_{L_{D_{O}}}} < {R_{T_{2}} \cdot \frac{v_{{L_{D}}_{O}}}{{R_{S}}_{1} + R_{S_{2}}}}$

In one or more embodiments, thus, the resistance values R_(T1), R_(T2) of resistors in the set of resistors R_(T1), R_(T2) may be selected as to be indicative of upper and lower resistance threshold values R_(S_max), R_(S_min), for instance satisfying the following expressions: R _(T1) =R _(S_max) −R _(S_min) R _(T2) =R _(S_min)

Consequently, the output OUT_(T1) and OUT_(T2) switch to a value, e.g., “1”, if

${{R_{T_{1}} + R_{T_{2}}} < {{\frac{R_{S_{m\; i\; n}}}{\beta}\mspace{20mu}{and}\mspace{14mu} R_{T_{1}}} + R_{T_{2}}} > \frac{R_{S_{{ma}\; x}}}{\beta}},$ thus facilitating to verify if the sensor branches resistors are out of the desired range.

In one or more embodiments, in case of sensor resistance out of a defined range (defined by R_(T1) and R_(T2) resistor) the comparator circuits 301 and 302 in the control circuit 30 in the circuit 10 may provide output signals OUT_(T1) or OUT_(T2), respectively, which may be equal to “1” in at least a clock period T.

It is noted that the described way of operating the FSM circuit 50 is in no way the only possible way of operating the FSM circuit 50. Any finite state machine logic capable of providing a sequential connection of sensor branches alternatively to a line 30A or a line 30B of a control circuit may be implemented in the FSM circuit 50.

In the operating mode, all the branches 401 a, . . . , 40 na working properly, i.e., not presenting mutual short circuits, may be coupled to the line 30A in the control circuit 30. On the other hand, sensor branches presenting bad connections, due to their malfunctioning, may be decoupled, e.g., via the finite state machine control signals.

Moreover, together with the assessment of the presence of either one of mutual short circuits, and/or out of range resistors, the finite state machine circuit 50 may also comprise a logic to permanently de-couple the malfunctioning sensor branches from the control circuit 30 which may lead to those malfunctioning sensor circuits to have their connections with the electronic device 8 abandoned in order not to provide erroneous information to the electronic device 8.

In one or more embodiments, the circuit 100 may be embedded in a device 10, e.g., a mobile communication device.

In one or more embodiments a method may comprise:

providing a touchscreen resistive sensor (for instance, 4, 6, 7; 40) comprising a network of resistive sensor branches (for instance, 401 a, 402 a, 40 ia, 40 na) coupled to a number N of respective sensor nodes (for instance, 401, 402, 40 i, 40 n) arranged at touch locations (for instance, F) of the touchscreen,

performing a test sequence (for instance, V_(TEST)) by sequentially applying (for instance, S_(A1), S_(A2), S_(Ai), S_(AN), 300, 30A, 50) to each sensor node (for instance, 401, 402, 40 i, 40 n) in the number N of sensor nodes a reference voltage level (for instance, V_(LDO)), and

i) jointly coupling (for instance, S_(B1), S_(B2), S_(Bi), S_(BN), 300, 30B, 50) to a common line (for instance, 30B, V_(M+)) the other nodes in the number N of sensor nodes, sensing (for instance, 303) a voltage value at the common line to which the other nodes in the number N of sensor nodes are jointly coupled and declaring a short circuit condition (for instance, OUT_(T3)) of the touchscreen resistive sensor as a result of the voltage value sensed at the common line reaching a short circuit threshold (for instance, 303, V_(M−));

ii) sensing (for instance, T₁, T₂, R_(T1), R_(T2)) a current value level flowing at the sensor node in the number N of sensor nodes to which the reference voltage level (for instance, V_(LDO)) is applied (for instance, 30A), and declaring malfunctioning (for instance, OUT_(T1), OUT_(T2)) of the resistive sensor branch (for instance, 401 a, 402 a, 40 ia, 40 na) coupled with the sensor node in the number N of sensor nodes to which a reference voltage level is applied as a result of the current value sensed (for instance, T₁, T₂, R_(T1), R_(T2)) at the sensor node in the number N of sensor nodes to which the reference voltage level is applied reaching an upper threshold (for instance, 301, V_(β)) or a lower threshold (for instance, 302, V_(β)).

One or more embodiments, may comprise repeating the test sequence and resetting (for instance, V_(RES), S_(M)) to a base voltage (for instance, GND) the common line (for instance, 30B, V_(M+)) between subsequent repetitions of the test sequence.

One or more embodiments may comprise generating at least one of the short circuit threshold, the upper threshold and the current threshold as a function of the reference voltage level.

One or more embodiments may comprise generating the short circuit threshold proportional to the reference voltage level as a function (for instance, R_(α1), R_(α2)) preferably via an inverse proportionality function, of the number N of sensor nodes.

One or more embodiments may comprise generating the upper threshold and the lower threshold proportional (for instance, R_(β1), R_(β2)) to the reference voltage level.

In one or more embodiments, a circuit (for instance, 100) may be configured to be coupled to a touchscreen resistive sensor (for instance, 4, 6, 7; 40) comprising a network of resistive sensor branches (for instance, 401 a, 402 a, 40 ia, 40 na) coupled to a number N of respective sensor nodes (for instance, 401, 402, 40 i, 40 n) arranged at touch locations (for instance, F) of the touchscreen, wherein the circuit comprises:

a source (for instance, 20) of a reference voltage level (for instance, V_(LDO)); a set of switches (for instance, 300) configured to perform a test sequence (for instance, V_(TEST)) by:

i) sequentially coupling (for instance, S_(A1), S_(A2), S_(Ai), S_(AN), 300, 30A, 50) the source of reference voltage level to the sensor nodes (for instance, 401, 402, 40 i, 40 n) in the number N of sensor nodes to sequentially apply (for instance, S_(A1), S_(A2), S_(Ai), S_(AN), 300, 30A, 50) the reference voltage level thereto, and

ii) jointly coupling (for instance, S_(B1), S_(B2), S_(Bi), S_(BN), 50, 300) to a common line (for instance, 30B, V_(M+)) the nodes in the number N of sensor nodes other than the sensor node in the number N of sensor nodes to which the reference voltage level is applied, a first comparator circuit block (for instance, 303) coupled to the common line, the first comparator circuit block configured to compare with a short circuit threshold (for instance, 303, V_(M−)) the voltage value sensed at the common line and produce a short circuit signal (for instance, OUT_(T3)) indicative of a short circuit condition of the touchscreen resistive sensor as a result of the voltage value sensed at the common line reaching a short circuit threshold; a current sensor circuit block (for instance, T₁, T₂, R_(T1), R_(T2)) configured to be coupled to the set of switches to sense a current value level (for instance, V_(I+), V_(I−)) flowing at the sensor node in the number N of sensor nodes to which the reference voltage level is applied, a second comparator circuit block (for instance, 301, 302) coupled to the current sensor circuit block, the second comparator circuit block configured to compare with an upper threshold (for instance, 301, V_(β)) and a lower threshold (for instance, 302, V_(β)) the current value sensed (for instance, T₁, T₂, R_(T1), R_(T2)) at the sensor node in the number N of sensor nodes to which the reference voltage level is applied (for instance, 30A) and produce at least one malfunctioning signal (for instance, OUT_(T1), OUT_(T2)) indicative of malfunctioning of the resistive sensor branch (for instance, 401 a, 402 a, 40 ia, 40 na) coupled with the sensor node in the number N of sensor nodes to which a reference voltage level is applied as a result of the current value sensed at the sensor node in the number N of sensor nodes to which the reference voltage level is applied reaching one of the upper threshold or the lower threshold.

One or more embodiments may comprise a reset switch (for instance, S_(M)) configured to couple (for instance, V_(RES)) the common line to a base voltage (for instance, GND) between subsequent repetitions of the test sequence (for instance, V_(TEST)).

One or more embodiments may include a finite state machine (for instance, 50) configured to control the set of switches in performing the test sequence, wherein the finite state machine is coupled to the first (for instance, 303) and the second (for instance, 301, 302) comparator circuit blocks and sensitive to the short circuit and malfunctioning signals (for instance, OUT_(T3), OUT_(T1), OUT_(T)) therefrom, wherein the finite state machine is configured to identify, as a function of the short circuit and malfunctioning signals a resistive sensor branch (for instance, 401 a, 402 a, 40 ia, 40 na) in the network of resistive sensor branches affected by a short circuit or malfunctioning condition as a result of a short circuit or malfunctioning signal being issued with the reference voltage level applied to (for instance, 30A) the respective sensor node in the number N of sensor nodes.

In one or more embodiments the first comparator circuit block (for instance, 303) may comprise:

a first input coupled to the common line (for instance, 30B, V_(M+)), and

a second input coupled to the source of a reference voltage level via a voltage divider (for instance, R_(α1), R_(α2)).

In one or more embodiments the second comparator circuit block (for instance, 301, 302) may comprise a window comparator arrangement (for instance, 301, 302) comprising:

an upper threshold input (for instance, 301 a, V_(I+)) and a lower threshold input (for instance, 302 b, V_(I−)) coupled to the current sensor circuit block and configured to receive the current value level flowing at the sensor node in the number N of sensor nodes to which the reference voltage level is applied between the upper threshold input and the lower threshold input, and

a common input node (for instance, 301 b, 302 a) coupled to the source (for instance, 20) of a reference voltage level via a voltage divider (for instance, R_(β1), R₂).

In one or more embodiments, a device (for instance, 10), may comprise:

a touchscreen resistive sensor (for instance, 6; 40) comprising a network of resistive sensor branches (for instance, 401 a, 402 a, 40 ia, 40 na) coupled to a number N of respective sensor nodes (for instance, 401, 402, 40 i, 40 n) arranged at touch locations (for instance, F) of the touchscreen (for instance, 6; 40), and

a circuit according to any of claims 6 to 10 having the set of switches (for instance, 300) configured to perform the test sequence (for instance, V_(TEST)) by:

i) sequentially coupling (for instance, S_(A1), S_(A2), S_(Ai), S_(AN), 50, 300) the source of reference voltage level to the sensor nodes in the number N of sensor nodes to sequentially apply (for instance, S_(A1), S_(A2), S_(Ai), S_(AN), 50, 300) the reference voltage level thereto, and

ii) jointly coupling (for instance, S_(Bi), S_(B2), S_(Bi), S_(BN)) to the common line the nodes in the number N of sensor nodes other than the sensor node in the number N of sensor nodes to which the reference voltage level is applied.

In one or more embodiments, the touchscreen resistive sensor may be a Wheatstone bridge touchscreen resistive sensor (for instance, 4, 6, 7; 40) comprising a network of resistive sensor branches comprising a pair of resistances (for instance, R_(S1_1), R_(S2_1), R_(S1_2), R_(S2_2), R_(S1_i), R_(S2_i), R_(S1_N), R_(S2_N)) coupled between a respective sensor node in the number N of respective sensor nodes and ground.

In one or more embodiments, the device (for instance 8, 10) may comprise one of an electronic tablet, or a smart phone, or a smart-watch, or a GPS navigation device.

It will be otherwise understood that the various individual implementing options exemplified throughout the figures accompanying this description are not necessarily intended to be adopted in the same combinations exemplified in the figures. One or more embodiments may thus adopt these (otherwise non-mandatory) options individually and/or in different combinations with respect to the combination exemplified in the accompanying figures.

Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described by way of example only, without departing from the extent of protection. The extent of protection is defined by the annexed claims. 

What is claimed is:
 1. A device, comprising: a touchscreen resistive sensor comprising a network of resistive sensor branches coupled to a plurality of sensor nodes arranged at touch locations of a touchscreen; and an error detection circuit configured to sequentially apply a reference voltage to each sensor node one at a time and to jointly couple a common line to the sensor nodes other than the sensor node to which the reference voltage is applied, the error detection circuit comprising a plurality of switches, each switch of the plurality of switches coupled between the common line or a reference line and a respective one of the sensor nodes.
 2. The device of claim 1, wherein the error detection circuit comprises: a first comparator circuit coupled to the common line, the first comparator circuit configured to compare a voltage sensed at the common line with a short circuit threshold.
 3. The device of claim 2, wherein the first comparator circuit is further configured to generate a short circuit signal indicative of a short circuit condition of the touchscreen resistive sensor as a result of the voltage sensed at the common line reaching the short circuit threshold.
 4. The device of claim 1, wherein the plurality of switches comprises a first plurality of switches and a second plurality of switches, each switch of the first plurality of switches coupled between the common line and a respective one of the sensor nodes and each switch of the second plurality of switches coupled between a reference line and a respective one of the sensor nodes; and wherein the error detection circuit comprises a comparator circuit having a first input coupled to the common line and a second input coupled to the reference line.
 5. The device of claim 1, wherein the error detection circuit comprises: a current sensor circuit block coupled to the plurality of switches to sense a current level flowing at the sensor node to which the reference voltage is applied; and a second comparator circuit coupled to the current sensor circuit block, the second comparator circuit configured to compare the current level sensed at the sensor node with an upper threshold and a lower threshold.
 6. The device of claim 5, wherein the second comparator circuit is further configured to generate a malfunction signal indicative of malfunctioning of the resistive sensor branch coupled with the sensor node to which a reference voltage level is applied as a result of the current level sensed at the sensor node to which the reference voltage level is applied reaching the upper threshold or the lower threshold.
 7. The device of claim 1, wherein the device comprises one of: an electronic tablet, or a smart phone, or a smart-watch, or a GPS navigation device.
 8. The device of claim 1, wherein the touchscreen resistive sensor is a Wheatstone bridge touchscreen resistive sensor comprising the network of resistive sensor branches comprising a pair of resistances coupled between a respective sensor node in the number N of respective sensor nodes and a ground node.
 9. A device, comprising: a touch sensor array comprising a plurality of touch locations; a network of resistive sensor branches coupled to respective sensor nodes arranged at the touch locations; a common line; a reference line; a first plurality of switches and a second plurality of switches, each switch of the first plurality of switches coupled between the common line and a respective one of the sensor nodes and each switch of the second plurality of switches coupled between the reference line and a respective one of the sensor nodes; a comparator circuit having a first input coupled to the common line and a second input coupled to the reference line; and a controller having outputs coupled to each of the switches of the first and second pluralities of switches and configured to perform a test sequence by activating and deactivating the first and second pluralities of switches during a test mode.
 10. The device of claim 9, wherein the touch sensor array comprises multiple layers stacked one onto another.
 11. The device of claim 9, wherein the touch sensor array comprises: a glass layer: a first layer of ITO (Indium-Tin-Oxide) material overlying the glass layer; a second layer of ITO material overlying the first layer of ITO and separated therefrom by a gap; and a flexible top layer overlying the second layer of ITO material.
 12. The device of claim 9, wherein the controller comprises a finite state machine.
 13. The device of claim 9, wherein the controller is configured to perform the test sequence by sequentially coupling a reference voltage to each one the sensor nodes and jointly coupling the sensors other than the one of the sensors to the common line while the one of the sensor nodes is coupled to the reference voltage.
 14. The device of claim 13, further comprising: a current sensor coupled to sense a current level flowing at the one of the sensor nodes that is coupled to the reference voltage; and a second comparator configured to compare the current level sensed at the sensor node with an upper threshold and a lower threshold with the current level sensed at the sensor node.
 15. The device of claim 9, wherein the comparator circuit is configured to compare a voltage sensed at the common line with a short circuit threshold and to generate a short circuit signal indicative of a short circuit condition of the touch sensor array as a result of the voltage sensed at the common line reaching the short circuit threshold.
 16. The device of claim 9, wherein each branch of the network of resistive sensor branches comprises a pair of resistances coupled between the respective sensor node and ground.
 17. The device of claim 9, wherein the network of resistive sensor branches is arranged as a Wheatstone bridge touchscreen resistive sensor.
 18. A device, comprising: a touch sensor array comprising a plurality of touch locations; a network of resistive sensor branches coupled to respective sensor nodes arranged at the touch locations; a common line; a reference line; an error detection circuit comprising a first plurality of switches, a second plurality of switches and a comparator circuit, each switch of the first plurality of switches coupled between the common line and a respective one of the sensor nodes and each switch of the second plurality of switches coupled between the reference line and a respective one of the sensor nodes, wherein the comparator circuit has a first input coupled to the common line and a second input coupled to the reference line; a finite state machine having outputs coupled to each of the switches of the first and second pluralities of switches; a voltage source circuit coupled to the reference line; and a self-test enable input coupled to the voltage source circuit and to the finite state machine.
 19. The device of claim 18, wherein the voltage source circuit comprises: an error amplifier having first and second inputs, the first input coupled to a reference node; a first transistor having a control input coupled to an output of the error amplifier; a second transistor having a current path coupled in series between a supply voltage node and a current path of the first transistor; first and second resistors coupled in series between the current path of the first transistor and a ground node, wherein a node between the first and second resistors is coupled to the second input of the error amplifier.
 20. The device of claim 19, further comprising a current mirror coupled to a node between the current paths of the first and second transistors.
 21. The device of claim 18, wherein the self-test enable input is configured to initiate performance of a test sequence in which the reference line is sequentially coupled to each sensor node and the sensor nodes other than the sensor node to which the reference line is coupled are jointly coupled to the common line. 